package com.cxdr.awsips.common.logger;

import java.io.File;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;

public class LogFactory {
	static {
		loadResource();
	}
	private LogFactory(){
	}
	
	public static Logger makeNewLogger(Class clazz){
		 Logger logger = Logger.getLogger(clazz);
	     return logger;
	}
	private static void loadResource(){
		String fileName = "log4j.properties";
		PropertyConfigurator.configureAndWatch(System.getProperty("user.dir","")+File.separator+fileName, 5);
	}
}
